﻿@model ClevelandFreeClinic.Models.Announcement

@{
    ViewBag.Title = "Create";
}
<style type="text/css">
    #CreateAnnouncement {
        background-color: white;
        text-align: left;
        font-family: Arial;
        font-weight: 100;
        padding:40px;
        border: 2px solid gray;
    
    }
    table{
        margin-left: 50px;
        padding: 5px;
    }
    table td{
        margin: 5px;
        padding: 5px;
    }
    th {
        text-align: left;
        font-weight: 600;
    }
</style>
<h2 style="color:#fff;">Create an Announcement</h2>
<div id="CreateAnnouncement">
<div style="padding: 10px; margin:0px;border:1px solid gray; width:75px;}">
    @Html.ActionLink("Create New", "Create")
</div>


@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Announcement</legend>

 
        <div class="editor-field">

            @Html.TextBoxFor(model => model.AnnouncmentText, new { style = "width: 600px; height:200px;" })
            @Html.ValidationMessageFor(model => model.AnnouncmentText)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Display, new {style = "font-weight: 500;" })
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.Display, new {style = "width: 30px; height:30px;"})
            @Html.ValidationMessageFor(model => model.Display)
        </div>
        <br />
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
</div>